package com.example.xpvideo.entity;

import java.time.LocalDateTime;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 采购商订单表(PurchaseCollect)实体类
 *
 * @author 杨丽辉
 * @since 2021-07-28 11:15:59
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class PurchaseCollect implements Serializable {
    private static final long serialVersionUID = -41093494888647678L;
        /**
    *主键
    * ${column.comment}
    * isnull 1
    */
        private Integer id;

    /**
    * 用户id
    * isnull 0
    */            private Integer customerId;
    /**
    * 供货商id
    * isnull 0
    */            private Integer supplierId;
    /**
    * 收藏状态，1已收藏，2取消收藏
    * isnull 0
    */            private Integer stage;
    /**
    * 创建时间
    * isnull 0
    */        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
            private LocalDateTime creatTime;
    /**
    * 商品id
    * isnull 0
    */            private Integer commodityId;
    /**
    * 1收藏商品，2收藏商家
    * isnull 0
    */            private Integer type;
        
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
        
    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }
        
    public Integer getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Integer supplierId) {
        this.supplierId = supplierId;
    }
        
    public Integer getStage() {
        return stage;
    }

    public void setStage(Integer stage) {
        this.stage = stage;
    }
        
    public LocalDateTime getCreatTime() {
        return creatTime;
    }

    public void setCreatTime(LocalDateTime creatTime) {
        this.creatTime = creatTime;
    }
        
    public Integer getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(Integer commodityId) {
        this.commodityId = commodityId;
    }
        
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

        @Override
    public String toString() {
        return "{" +
                    " \"id\":" + id +
                                  " ,\"customerId\":" + customerId +
                            " ,\"supplierId\":" + supplierId +
                            " ,\"stage\":" + stage +
                            " ,\"creatTime\":" + creatTime +
                            " ,\"commodityId\":" + commodityId +
                            " ,\"type\":" + type +
                  '}';
    }


}
